import request from "./request";
import defaultSettings from "@/config/defaultSettings";

const baseUrl =  defaultSettings.isMock ? defaultSettings.mockUrl : defaultSettings.baseUrl + defaultSettings.baseUrlPrefix

const http = new request({
  baseURL: baseUrl,
  timeout: 10000,
})

export default http